package com.ruyuan.scholartrade.controller;

import com.scholar.shop.common.CommonRes;
import com.scholar.shop.common.Pages;
import com.scholar.shop.trad.recharge.api.RechargeAPI;
import com.scholar.shop.trad.recharge.domain.DepositeParamDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @description: 预存款充值客户端实现
 * @author: liuyulei
 * @create: 2020-01-02 16:43
 * @version:1.0
 * @since:7.1.4
 **/
@CrossOrigin
@RestController
@RequestMapping("/trade/rechange/open/api")
public class RechargeAPIController {

    @Autowired
    private RechargeAPI rechargeAPI;
    @PostMapping("/list")
    public CommonRes<Pages> list(@RequestBody DepositeParamDTO paramDTO) {
        return rechargeAPI.list(paramDTO);
    }

}
